package com.atguigu.tingshu.account.mapper;

import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserAccountDetailMapper extends BaseMapper<UserAccountDetail> {

    Page<UserAccountDetail> getUserRechargePage(Page<UserAccountDetail> pageInfo, @Param("userId") Long userId);

    Page<UserAccountDetail> getUserConsumePage(Page<UserAccountDetail> pageInfo, @Param("userId") Long userId);
}
